/**
 * Created by dfc on 2017/8/25.
 */
const webpack = require("webpack");
const path = require("path");


const commonsChunkPlugin = new webpack.optimize.CommonsChunkPlugin({

});
module.exports = {
	entry: {
		a:path.resolve(__dirname, "index.js"),
		b:path.resolve(__dirname, "index.js"),
		c:path.resolve(__dirname, "index.js"),
	},
	output: {
		filename: "[name].js",
		path: path.resolve(__dirname, "xxx")
	},
	resolve: {
		//  第一项空字符串必不可少，否则报模块错误
	},
	plugins: [
		new webpack.optimize.CommonsChunkPlugin({
			name: "vendor"
		}),
	]
};